package x.y.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public final class Boot {

	  private static ApplicationContext ctx;

	public static void main(final String[] args) throws Exception {
	    ctx = new ClassPathXmlApplicationContext("context.xml");
	    FooService fooService = (FooService) ctx.getBean("fooService");
	    fooService.getFoo("hehe");
//	    fooService.insertFoo (new Foo());
//	    fooService.getFoo("hehe","呵呵");
//	    fooService.updateFoo(new Foo());
	    
	  }
	}